package com.buer.storage.common.holder;

/**
 *
 * @ProjectName:
 * @Package:        com.buer.storage.common.holder
 * @ClassName:      RequestTypeHolder
 * @Description:    java类作用描述
 * @Author:         lds
 * @CreateDate:     2021/1/14 19:40
 * @UpdateUser:     更新者
 * @UpdateDate:     2021/1/14 19:40
 * @UpdateRemark:   更新内容
 * @Version:        1.0
 */
public class RequestTypeHolder {
    private static final ThreadLocal<String> requestTypeHolder = new ThreadLocal<>();


    public static void setRequestTypeHolder(String requestType) {
        requestTypeHolder.set(requestType);
    }


    public static String getRequestTypeHolder() {
        return requestTypeHolder.get();
    }


    public static void clearRequestTypeHolder() {
        requestTypeHolder.remove();
    }

}
